/*
 * @Author: ShawnPhang
 * @Date: 2022-03-03 14:13:16
 * @Description:
 * @LastEditors: ShawnPhang
 * @LastEditTime: 2022-03-05 17:17:02
 * @site: book.palxp.com / blog.palxp.com
 */
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import utils from './utils'
import ElementPlus, { ClickOutside as vClickOutside } from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'normalize.css/normalize.css'
import '@/assets/styles/index.less'
import 'element-plus/theme-chalk/src/base.scss'

const app = createApp(App)

// 注册所有图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(ElementPlus)

app.directive('click-outside', vClickOutside)

app.use(store).use(router).mount('#app')
